﻿Imports Microsoft.VisualBasic

Public Class Define
    Public Const ConnStr As String = "Data Source=(local);Initial Catalog=EShop;Persist Security Info=True;User ID=sa; Password=333"
    Public Const INIFile As String = "EShop.INI"
    Public Const InitParaName As String = "LOGGED_ON_USER"
    Public Const EShopUserName As String = "EShopUserName"
    Public Const EShopPassword As String = "EShopPassword"
    Public Const ConnectionTimeOut As String = "30"

    Public Const USER_ADMINISTRATOR_ID As String = "4917069A-FDA6-454C-A353-8C11359D5E6B"
End Class

Public Enum IsActive As Short
    Active = 1
    InActive = 0
End Enum

Public Enum IsLogin As Short
    Yes = 1
    No = 0
End Enum

Public Enum UserType As Short
    Admin = 1
    Staff = 2
    Suplier = 3
    Customber = 4
End Enum

Public Enum UserGroupType As Short
    Suplier = 3
End Enum

Public Enum ProductTypeID As Short
    Company = 1       ' Hàng công ty
    Market = 2        ' Hàng chợ
    Handmake = 3      ' Hàng công ty
    Orther = 4        ' Hàng ko rõ nguồn gốc
End Enum

Public Enum OrderStatus As Byte
    Draft = False       ' Mới tạo
    Completed = True    ' Đã nhập vào kho
End Enum

Public Enum SaleOrderStatus As Short
    Draff = 1       ' Mới tạo
    Shipping = 2    ' Đã đóng gói chuyển hàng
    Completed = 3   ' Đã thanh toán
End Enum

Public Enum ShipStatus As Short
    Recived = 1     ' Đã nhận
    Shipping = 2    ' Đang chuyển
    Cancel = 3      ' Đã huỷ
End Enum

#Region " Page Define "
Public Enum PageNavigator As Short
    PREVIOUS = 0
    [NEXT] = 1
End Enum
#End Region